<%@page import="java.util.*,com.yymmarket.forum.bbs.*,com.yymmarket.forum.user.UserBean,com.yymmarket.forum.user.UserService,com.yymmarket.forum.util.*,com.yymmarket.forum.bbs.ContentBean,com.yymmarket.forum.bbs.BBSService,com.yymmarket.framework.WebAction"%><%@ 
page contentType="text/vnd.wap.wml;charset=utf-8"%><%
response.setHeader("Cache-Control","no-cache");
ContentAction webAction = new ContentAction(request,response);
int cid = webAction.getParameterInt("cid");
int fid = webAction.getParameterInt("fid");
int p = webAction.getParameterInt("p");
int p1 = webAction.getParameterInt("p1");
BBSService bbs = BBSService.getInstance();

boolean flag = webAction.reply();
%><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml><%
if(flag) {
%><card title="回复成功" ontimer="<%=response.encodeURL("content.jsp?fid="+fid+"&amp;id="+cid+"&amp;p1="+p1+"&amp;p="+p) %>">
<timer value="30" />
<p><%= BaseUtil.top(request,response) %>回复成功<br/>
3秒之后自动跳转<br/>
<a href="content.jsp?fid=<%=fid%>&amp;id=<%=cid %>&amp;p1=<%=p1 %>&amp;p=<%=p %>">直接跳转</a><br/>
<a href="forum.jsp?id=<%=fid %>&amp;p=<%=p1 %>">返回<%=bbs.getBBSBeanById(fid).getTitle() %></a>
<%= BaseUtil.bottom(request,response) %></p>
</card>
<%}else { 
%><card title="发表新回复">
<p><%= BaseUtil.top(request,response) %><%=webAction.getAttributeEnter("msg")%>
回复帖子<br/>
内容:<br/>
<input type="text" name="c"/><br/>
<anchor>回复<go href="reply.jsp?id=<%=cid%>&amp;fid=<%=fid %>" method="post">
<postfield name="c" value="$c" />
</go></anchor><br/>
<a href="content.jsp?fid=<%=fid%>&amp;id=<%=cid %>&amp;p1=<%=p1 %>&amp;p=<%=p %>">返回帖子</a><br/>
<a href="forum.jsp?id=<%=fid %>&amp;p=<%=p1 %>">返回<%=bbs.getBBSBeanById(fid).getTitle() %></a>
<%= BaseUtil.bottom(request,response) %></p>
</card>
<%} %></wml>